<%@page import="cn.edu.hust.sse.software7.class3.entities.EBProduct"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div style="background-color: silver;">
<%
	List<EBProduct> plist = (List<EBProduct>) session
			.getAttribute("prodInSCList");
	if (null != plist && !plist.isEmpty()) {
%>

<%
	for (EBProduct prod : plist) {
%>
<div style="background-color: activeborder;">
<table style="margin: 5px;">
	<tr>
		<td rowspan="5"><img src="/image?type=2&id=<%=prod.getProductId()%>"></td>
		<td><b>商品ID:</b></td>
		<td><%=prod.getProductId()%></td>
		<td><b>商品名称:</b></td>
		<td colspan="3"><%=prod.getProductName()%></td>
	</tr>
	<tr>
		<td><b>商品种类:</b></td>
		<td><%=prod.getMyCategoryId()%></td>
		<td><b>商品数量:</b></td>
		<td colspan="3"><%=prod.getMount()%></td>
	</tr>
	<tr>
		<td><b>商品价格:</b></td>
		<td><%=prod.getLowestPrice()%></td>
		<td><b>当前最高价:</b></td>
		<td><%=prod.getHightestBid()%></td>
		<td><b>运费:</b></td>
		<td><%=prod.getTradingPrice()%></td>
	</tr>
	<tr>
		<td colspan="5"><b>商品描述:</b></td>
		<td><b><a href="/go?page=watchProdDetail&prod2Watch=<%=prod.getProductId()%>">查看该商品</a></b>&nbsp;&nbsp;&nbsp;<b><a href="/go?page=buy&id=<%=prod.getProductId()%>">购买</a></b>&nbsp;&nbsp;&nbsp;<b><a
			href="/user?method=deleteWatch&id=<%=prod.getProductId()%>">删除关注</a></b></td>
	</tr>
	<tr>
		<td colspan="6"><%=prod.getProductDescription()%></td>
	</tr>
</table>
</div>
<%
	}
%>

<%
	} else {
%>
请还没有关注的商品！
<%
	}
%>
</div>
</body>
</html>